package com.greenhouse.controller;

import com.greenhouse.config.Request;
import com.greenhouse.model.Crop;
import com.greenhouse.request.CropRequest;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/crop")
public class CropController {
    /**
     * 种植作物
     * @return
     */
    @RequestMapping("/plant")
    public Request<CropRequest> plant() {
        return null;
    }
    /**
     * 收获作物
     */
    @RequestMapping("/harvest")
    public Request<CropRequest> harvest() {
        return null;
    }
    /**
     * 获取作物信息
     */
    @RequestMapping("/getCropInfo")
    public Request<List<CropRequest>> getCropInfo() {
        return null;
    }
    /**
     * 修改作物
     */
    @RequestMapping("/updateCrop")
    public Request<CropRequest> updateCrop() {
        return null;
    }


}
